Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Swift Interview Questions and Answers

Question: Explain the difference between a struct and a class in Swift.
Answer: Structs are value types, while classes are reference types. Structs are copied when assigned or passed, whereas classes share a reference to the same instance.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook